package com.fortune.service.impl;

import com.fortune.dao.HistoryOrderDao;
import com.fortune.dto.in.clientOrder.ListDto;
import com.fortune.entity.Order;
import com.fortune.service.HistoryOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HistoryOrderServiceImpl implements HistoryOrderService {
    @Autowired
    private HistoryOrderDao historyOrderDao;

    @Override
    public List<Order> selectClientList(ListDto listDto, String did, String cid) {
        return historyOrderDao.selectClientList(listDto, did, cid);
    }

    @Override
    public Integer acount(String did, String cid) {
        return historyOrderDao.acount(did, cid);
    }
}
